var artilce =(function($){


	return {
		
		lists:function(param){ // {last_id:0,limit:0,cat_id:0,fun}

			var news_api_url = 'http://www.lpfwpt.org/api/?class=news&method=article_lists';
			
			dojob.remote.load(news_api_url,{last_id:param.last_id,limit:param.limit,cat_id:param.cat_id},function(json){	
				var html = new Array();	
				for(var i=0;i<json.results.length;i++){
					html.push('<li><a><div class="pic"><img src="'+json.results[i].thumb_picture_url+'" /></div><div class="box"><div class="title">'+json.results[i].title+'</div>');
	        		html.push(' <div class="summary">'+json.results[i].short_content+'</div></div></a></li>')
				}
				if(param.fun) param.fun( html.join('') );
			});
					
		}

	}


})($)

